package com.hjw.controller;

import com.hjw.service.ICharacterxService;
import com.hjw.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author hjw
 * @since 2025-01-12
 */
@RestController
@RequestMapping("/characterx")
public class CharacterxController {
    @Autowired
    private ICharacterxService characterxService;
    @RequestMapping("/list")
    public R findAll(){
        return R.ok().data("list",characterxService.list());
    }

}
